package com.southwind.servise;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.southwind.entity.Student;
import com.southwind.mdao.StudentMapper;

@Service
public class StudentService {
	@Autowired
	StudentMapper mapper;
	//通过id来查
		public Student findById(long id) {
			return mapper.findById(id);
			
		}

}
